<!DOCTYPE html>
<html>
<head>
	<script charset="utf-8" src="js/jquery.min.js?v=01291"></script>
	<script charset="utf-8" src="js/global.js?v=01291"></script>
	<script charset="utf-8" src="js/bootstrap.min.js?v=01291"></script>
	<script charset="utf-8" src="js/template.js?v=01291"></script>

	<link rel="stylesheet" href="css/bootstrap.css?v=01291">
	<link rel="stylesheet" href="css/style.css?v=1?v=01291">
	<link rel="stylesheet" href="css/member.css?v=01291">
	<link rel="stylesheet" href="css/order3.css?v=01291">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no" name="format-detection">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1,user-scalable=no">
	<script charset="utf-8" src="js/jquery.form.js?v=01291"></script>
	<script charset="utf-8" src="js/prodSort.js?v=01291"></script>
	<title>商品列表</title>
</head>
<body>
<div class="fanhui_cou">
	<div class="fanhui_1"></div>
	<div class="fanhui_ding">顶部</div>
</div>
<header class="header">
	<div class="fix_nav">
		<div class="nav_inner">
			<a class="nav-left back-icon" href="javascript:history.back();">返回</a>
			<div class="tit">产品列表</div>
		</div>
	</div>
</header>

<div class="container" id="container2">
	<div class="row">
		<!--商品展示选项-->
		<ul class="mod-filter clearfix">
			<div class="white-bg_2 bb1">
				<li id="default" class="active">
					<a title="默认排序"  href="javascript:void(0);">默认</a>
				</li>
				<li id="buys">
					<a title="点击按销量从高到低排序"href="javascript:void(0);">销量
						<i class='icon_sort'></i></a>
				</li>
				<li id="comments">
					<a title="点击按评论数从高到低排序";href="javascript:void(0);" >评论数
						<i class='icon_sort'></i></a>
				</li>
				<li id="cash">
					<a title="点击按价格从高到低排序";href="javascript:void(0);" >价格
						<i class='icon_sort'></i></a>
				</li>
			</div>
		</ul>




		<!--商品列表-->
		<form  id="theForm"  name="theForm" class="product clearfix"  action="/p/j_spring_security_check" method="POST" >
			<a href="views.html">
				<div class="hproduct clearfix" style="background:#fff;border-top:0px;">
					<div class="p-pic"style="height: 100px;line-height: 100px;"><img name="picture";id="picture"style="width: 100%;vertical-align:middle;" class="img-responsive" src="moblic/红色.jpg"></div>
					<!--介绍-->
					<div class="p-info">
						<p class="p-title";name="intro";id="intro">aza阿札2015秋冬新款潮流女包 个性嘴唇印花时尚短款女士钱包1515</p>
						<br />
						<div name="pirce";id="pirce"><em class="price">¥135.00</em><b class="p-origin"style="float: right;">月售  笔</b></div>
						<p align="right"style="margin-top: 5px;">评论</p>
					</div>
				</div>
			</a>
			<a href="views.html">
				<div class="hproduct clearfix" style="background:#fff;border-top:0px;">
					<div class="p-pic"><img name="picture";id="picture"style="max-height:100px;margin:auto;" class="img-responsive" src="moblic/蓝色.jpg"></div>
					<!--介绍-->
					<div class="p-info">
						<p class="p-title";name="intro";id="intro">aza阿札2015秋冬新款潮流女包 个性嘴唇印花时尚短款女士钱包1515</p>
						<br />
						<div name="pirce";id="pirce"><em class="price">¥140.00</em><b class="p-origin"style="float: right;">月售  笔</b></div>
						<p align="right"style="margin-top: 5px;">评论</p>
					</div>
				</div>
			</a>
		</form>
	</div>

	<div id="ajax_loading" style="display:none;width:300px;margin: 10px  auto 15px;text-align:center;">
		<img src="images/loading.gif">
	</div>
	<!--
		<form  action='/m_search/prodlist' method="post" id="list_form">
			<input type="hidden" id="curPageNO" name="curPageNO"  value=""/>
			<input type="hidden"  id="categoryId" name="categoryId" value="36" />
			<input type="hidden" id="orders" name="orders"  value=""/>
			<input type="hidden" id="hasProd" name="hasProd"  value="" />
			<input type="hidden" id="keyword" name="keyword"  value="" />
			<input type="hidden" id="prop" name="prop"  value="" />
	</form>
	-->
</div>


<div class="clear"></div>

<footer class="footer">
	<div class="foot-con">
		<div class="foot-con_2">
			<a href="index.html">
				<i class="navIcon home"></i>
				<span class="text">首页</span>
			</a>
			<a href="category.html">
				<i class="navIcon sort"></i>
				<span class="text">分类</span>
			</a>
			<a href="shopcart.html">
				<i class="navIcon shop"></i>
				<span class="text">购物车</span>
			</a>
			<a href="userhome.html">
				<i class="navIcon member"></i>
				<span class="text">我的</span>
			</a>
		</div>
	</div>
</footer>
<script type="text/javascript">
    var child=document.getElementById("theForm");
    var a=child.getElementsByTagName('a');
    var price=[];
    var form=document.querySelector('form');
    var kuai=document.querySelectorAll('form a');

    window.onload=function changeDefault(idx){
        //获得price标签(￥)
        for(var i=0;i<a.length;i++){
            var info=a[i].getElementsByClassName('p-info');
            price[i]=info[0].getElementsByTagName('em')[0].innerHTML;
        }
        var formArr=[];
        var aArr=[];
        for(var q=0;q<kuai.length;q++){
            formArr.push(Number(price[q].substring(1)));
            aArr.push(kuai[q].cloneNode(true));
        }
////		formArr.sort(function(a,b){return a-b;});
//		for(var j=0;j<aArr.length;i++){
//			for(var p=0;p<aArr.length;p++){
//				if(formArr[j]){}
//			}
//		}

    }
</script>
</body>
</html>